package com.homework.service.impl;

import com.homework.entity.Passport;
import com.homework.mapper.PassportMapper;
import com.homework.service.PassportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PassportServiceImpl implements PassportService {

    @Autowired
    private PassportMapper passportMapper;
    @Override
    public Passport getPassportAndPassengers(int id) {
        return passportMapper.getMessageById(id);
    }

    @Override
    public Passport getPassportAndPassengers2(int id) {
        return passportMapper.getMessageById2(id);
    }
}
